package com.qeado.content.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.qeado.content.dao.MessageBoardDao;
import com.qeado.content.model.MessageBoard;
import com.qeado.content.service.MessageBoardService;

@Service
public class MessageBoardServiceImpl implements MessageBoardService {
	@Autowired
	private MessageBoardDao messageBoardDao;

	@Override
	public void deleteMessageBoard(String id) {
		messageBoardDao.deleteMessageBoard(id);
	}

	@Override
	public List<MessageBoard> messageBoardSearch(MessageBoard messageBoard) {
		return messageBoardDao.searchMessageBoard(messageBoard);
	}

	@Override
	public String saveMessageBoard(MessageBoard messageBoard) {
		messageBoardDao.saveMessageBoard(messageBoard);
		return null;
	}

	@Override
	public MessageBoard selectMessageBoard(String id) {
		return messageBoardDao.searchMessageBoardById(id);
	}

}
